(global.webpackJsonp = global.webpackJsonp || []).push([ [ "components/uni-number-box/uni-number-box" ], {
    2768: function(n, t, e) {
        function u() {
            this.$createElement, this._self._c;
        }
        var i = [];
        e.d(t, "b", function() {
            return u;
        }), e.d(t, "c", function() {
            return i;
        }), e.d(t, "a", function() {});
    },
    "28db": function(n, t, e) {
        e.r(t);
        var u, i = e("c9b7"), a = e.n(i);
        for (u in i) "default" !== u && function(n) {
            e.d(t, n, function() {
                return i[n];
            });
        }(u);
        t.default = a.a;
    },
    "48d8": function(n, t, e) {
        var u = e("c25a");
        e.n(u).a;
    },
    "850d": function(n, t, e) {
        e.r(t);
        var u, i = e("2768"), a = e("28db");
        for (u in a) "default" !== u && function(n) {
            e.d(t, n, function() {
                return a[n];
            });
        }(u);
        e("48d8");
        var o = e("f0c5"), i = Object(o.a)(a.default, i.b, i.c, !1, null, "51d59f51", null, !1, i.a, void 0);
        t.default = i.exports;
    },
    c25a: function(n, t, e) {},
    c9b7: function(n, t, e) {
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var u = {
            name: "UniNumberBox",
            props: {
                value: {
                    type: [ Number, String ],
                    default: 1
                },
                min: {
                    type: Number,
                    default: 0
                },
                max: {
                    type: Number,
                    default: 100
                },
                step: {
                    type: Number,
                    default: 1
                },
                disabled: {
                    type: Boolean,
                    default: !1
                }
            },
            data: function() {
                return {
                    inputValue: 0
                };
            },
            watch: {
                value: function(n) {
                    this.inputValue = +n;
                },
                inputValue: function(n, t) {
                    +n != +t && this.$emit("change", n);
                }
            },
            created: function() {
                this.inputValue = +this.value;
            },
            methods: {
                _calcValue: function(n) {
                    if (!this.disabled) {
                        var t = this._getDecimalScale(), e = this.inputValue * t, u = this.step * t;
                        if ("minus" === n) {
                            if ((e -= u) < this.min) return;
                            e > this.max && (e = this.max);
                        } else if ("plus" === n) {
                            if ((e += u) > this.max) return;
                            e < this.min && (e = this.min);
                        }
                        this.inputValue = String(e / t);
                    }
                },
                _getDecimalScale: function() {
                    var n = 1;
                    return ~~this.step !== this.step && (n = Math.pow(10, (this.step + "").split(".")[1].length)), 
                    n;
                },
                _onBlur: function(n) {
                    n = n.detail.value;
                    n && ((n = +n) > this.max ? n = this.max : n < this.min && (n = this.min), this.inputValue = n);
                }
            }
        };
        t.default = u;
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "components/uni-number-box/uni-number-box-create-component", {
    "components/uni-number-box/uni-number-box-create-component": function(n, t, e) {
        e("543d").createComponent(e("850d"));
    }
}, [ [ "components/uni-number-box/uni-number-box-create-component" ] ] ]);